<?php
/******************************************************
******
******  FUNCTIONS TO BE USED
******
*******************************************************/

// PHP < 4.3 Compatability
if (!function_exists('is_a')) {
	function is_a( $object, $className ) {
		return ((strtolower($className) == get_class($object))
		or (is_subclass_of($object, $className)));
	}
}

// LOAD THE DEFAULT CLASSES USED GLOBALLY
require_once(DIR_CLASS."core/dm.class.php");
$DM = new dm(); // set this to ture if you want to stop the execution after the error message.
$DM->loadClass("core","core");
// NOT NEEDED - CORE CLASS IS USED ONLY WITH STATIC ACCESS (core::whatever)
//$_core=new core();

function get_javscript($file){
	
	$src = HTTP_JAVASCRIPT.$file;
	$js = "<script src='$src'></script>\n";
	return $js;
}
function get_css($file){
	$path=HTTP_CSS;
	$css='<link href="'.$path.$file.'.css" type="text/css" rel="stylesheet" rev="stylesheet" />'."\n";
	return $css;
}

?>